//
//  SHCarouseVC.m
//  SHWheel
//
//  Created by YYKJ on 2020/8/17.
//  Copyright © 2020 YYKJ. All rights reserved.
//

#import "SHCarouseVC.h"
#import "YYLYCarouselView.h"
#import "SHCommonDefines.h"

@interface SHCarouseVC ()

@property (nonatomic, strong) YYLYCarouselView *carouselView;

@end

@implementation SHCarouseVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = UIColor.whiteColor;
    
   YYLYCarouselView *carouselView = [[YYLYCarouselView alloc] initWithFrame:CGRectMake(0, 0, DEVICE_WIDTH, 300)];
   [self.view addSubview:carouselView];
   self.carouselView = carouselView;
   
   carouselView.sourceArray = [self bannerArray];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}


- (NSArray *)bannerArray {
    return @[
        @"https://www.w3school.com.cn/example/html5/mov_bbb.mp4",
        @"http://img.ptocool.com/3332-1518523974126-29",
        @"http://img.ptocool.com/3332-1518523974125-28",
        @"http://img.ptocool.com/3332-1518523974125-27",
        @"http://img.ptocool.com/3332-1518523974124-26",
        @"http://img.ptocool.com/3332-1518523974124-26"];
}

@end
